package com.sudo.dao.admin.mapper;

import com.sudo.common.mapper.MyMapper;
import com.sudo.dao.admin.entity.SysMenu;
import com.sudo.dao.admin.entity.SysRoleMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysMenuMapperCustom extends MyMapper<SysMenu> {

    List<SysMenu> findMyMenuByMailOrUsername(@Param("mailOrUsername") String mailOrUsername);

    List<SysRoleMenu> getRoleMenuByMenuCodeAndRoleStatus(@Param("menuCode") String menuCode, @Param("roleStatus") String roleStatus);
}
